package testcase;

/**
 * @Author: zhangrongqing
 * @Date: 2020/2/20 9:37
 */
public class SingletonDemo {
    private static SingletonDemo instance;
    private SingletonDemo(){

    }

    public static SingletonDemo getInstance(){
        if(instance == null){
            instance = new SingletonDemo();
            return instance;
        }else{
            return instance;
        }
    }


}
